$loading-background-legacy: #7f7f7f !default;
$loading-background: rgba(255,255,255,0.5) !default;
$loading-icon-size: 3em !default;
$loading-full-page-icon-size: 5em !default;

.loading-overlay {
    @include overlay;
    align-items: center;
    display: none;
    justify-content: center;
    overflow: hidden;
    z-index: 29;
    &.is-active {
        display: flex
    }
    &.is-full-page {
        position: fixed;
        z-index: 999;
        .loading-icon {
            &:after {
                top: calc(50% - #{$loading-full-page-icon-size * 0.5});
                left: calc(50% - #{$loading-full-page-icon-size * 0.5});
                width: $loading-full-page-icon-size;
                height: $loading-full-page-icon-size;
            }
        }
    }
    .loading-background {
        @include overlay;
        background:$loading-background-legacy;
        background:$loading-background;
    }
    .loading-icon {
        position: relative;
        &:after {
            @include loader;
            position: absolute;
            top: calc(50% - #{$loading-icon-size * 0.5});
            left: calc(50% - #{$loading-icon-size * 0.5});
            width: $loading-icon-size;
            height: $loading-icon-size;
            border-width: 0.25em;
        }
    }
}
